#ifndef __YT_SEN_VAD_INTERFACE_HEADER__
#define __YT_SEN_VAD_INTERFACE_HEADER__


#ifdef __cplusplus
	extern "C" {
#endif

	/*--------------------------------------------------------------------------
	 |ytv_sen_vad_initialize(...)
	 |PURPOSE
	 |	This API intends to initialize a VAD instance
	 |
	 |INPUT
	 |	nSamplingRate: the target sampling rate, say 8000Hz/16000Hz
	 |	nMemSizeInByte: memory size of pMemoryBuffer in byte, say 30KB
	 |
	 |OUTPUT
	 |	pMemoryBuffer: buffer for holding variables for VAD instance
	 |	ppInstance_VAD: pointer to pointer to VAD instance
	 |
	 |RETURN VALUE
	 |	It returns 0 if successful; otherwise it returns -1.
	 |
	 |CODING
	 |			YoungTone Inc.
	 *-----------------------------------------------------------------------*/
	int ytv_sen_vad_initialize(unsigned int nSamplingRate,char *pMemoryBuffer, unsigned int nMemSizeInByte,  void **ppInstance_VAD);




	int ytv_sen_vad_input_data_to_start(void *pInstance_VAD,short *pInputSample, int nSampleNumber, char *pFlag_VAD);

	short *ytv_sen_vad_get_starting_part(void *pInstance_VAD, int *pOutSampleNumber);

	int ytv_sen_vad_input_data_to_end(void *pInstance_VAD,short *pInputSample, int nSampleNumber, char *pFlag_VAD);

	int ytv_sen_vad_reset(void *pInstance_VAD);



#ifdef __cplusplus
		}
#endif


#endif
